// MyDialog.js
import Vue from 'vue'
import Dialog from './index.vue'
import store from "@/store/index"
export const openFormDialog = async function (options) {
  const DialogConstructor = Vue.extend(Dialog)
  const instance = new DialogConstructor({store})
  await instance.setAttrs(options)
  instance.$mount()
  document.body.appendChild(instance.$el)
}

